<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
String username="";
Cookie[] cks=request.getCookies();
if(cks!=null)
{
	for(Cookie a:cks)
	{
		if(a.getName().equals("username")){
			username=a.getValue();
		}
	}
}
%>
<form action="logingo.jsp" method="get">
<table border="1" align="center">
<tr><td colspan=2><center>用户登录</center></td></tr>
<tr><td>用户名：</td><td><input type="text" name="username" value=<%=username %>></td></tr>
<tr><td>密码：</td><td><input type="password" name="pwd"></td></tr>
<tr><td colspan=2><input type="checkbox" name="jizhu" value="yes">记住我</td></tr>
<tr><td colspan=2><center><input type="submit" value="登录"><input type="reset" value="清空"></center></td></tr>
</table>
</form>
</body>
</html>